using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Text;

/// <summary>
/// Summary description for Class1
/// </summary>
public class StringWriterWithEncoding : StringWriter
{
    private Encoding _Encoding;

    public StringWriterWithEncoding(StringBuilder stringbuilder, Encoding encoding)
        : base(stringbuilder)
    {
        _Encoding = encoding;
    }

    public override Encoding Encoding
    {
        get { return _Encoding; }
    }
}
